package com.sniff.atp.provider;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @BelongsProject: sniff-atp
 * @BelongsPackage: com.sniff.atp.provider
 * @Author: zxy
 * @CreateTime: 2024-01-26 16:30
 * @Description: TODO
 * @Version: 1.0
 */
public class DynamicDataSource extends AbstractRoutingDataSource {
    protected Object determineCurrentLookupKey() {
        return DynamicDataSourceContextHolder.getDataSourceType();
    }
}
